<?php
namespace App\Annotation;
use Attribute;
use Hyperf\Di\Annotation\AbstractAnnotation;
/**
 * @Annotation
 * @Target({"METHOD"})
 */
#[Attribute(Attribute::TARGET_METHOD)]
class SystemLog extends AbstractAnnotation
{
    /**
     * 日志名称
     */
    public string $description = '';
    /**
     * 是否记录参数
     */
    public bool $withParams = true;

    /**
     * 是否记录返回值
     */
    public bool $withResult = true;


    public function __construct(
        string $description = '',
        bool $withParams = true,
        bool $withResult = true,
    ) {
        $this->description = $description;
        $this->withParams = $withParams;
        $this->withResult = $withResult;

    }
}